package com.example.designer.ChainOfResponsibility;

/**
 * @author zhaoyunlong
 * @date 2020/12/17
 * @description
 */
public class Main {

    public static void main(String[] args) {
        Msg msg = new Msg();
        msg.setMsg("大家好：， <script> 欢迎访问xxx.com, 大家都是96");

        //处理msg
        String r = msg.getMsg();
        r.replace('<', '[');
        r.replace('>', ']');
        msg.setMsg(r);

        r.replace("996", "955");
        msg.setMsg(r);
        System.out.println(msg.getMsg());


    }
}
